package Inherit;

public class EmployeeTest {
    public static void main(String[] args) {
        cook a =new cook("123","wangfan",5000);
        System.out.println(a.getId()+" "+a.getName()+" "+a.getMoney()+"元");
        a.work();
        a.eat();

        System.out.println("---------------------");

        manger b = new manger("254","wangwu",9000,500);
        System.out.println(b.getId()+" "+b.getName()+" "+b.getMoney()+"元"+" "+ b.getManageMoney()+"元");
        b.work();
        b.eat();
    }
}
